package com.ruoyi.pushSetting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pushSetting.mapper.CircleHsPushSettingMapper;
import com.ruoyi.pushSetting.domain.CircleHsPushSetting;
import com.ruoyi.pushSetting.service.ICircleHsPushSettingService;

/**
 * 圈子热搜推送设置Service业务层处理
 * 
 * @author 区嘉盛
 * @date 2025-06-23
 */
@Service
public class CircleHsPushSettingServiceImpl implements ICircleHsPushSettingService 
{
    @Autowired
    private CircleHsPushSettingMapper circleHsPushSettingMapper;

    /**
     * 查询圈子热搜推送设置
     * 
     * @param id 圈子热搜推送设置主键
     * @return 圈子热搜推送设置
     */
    @Override
    public CircleHsPushSetting selectCircleHsPushSettingById(Long id)
    {
        return circleHsPushSettingMapper.selectCircleHsPushSettingById(id);
    }

    /**
     * 查询圈子热搜推送设置列表
     * 
     * @param circleHsPushSetting 圈子热搜推送设置
     * @return 圈子热搜推送设置
     */
    @Override
    public List<CircleHsPushSetting> selectCircleHsPushSettingList(CircleHsPushSetting circleHsPushSetting)
    {
        return circleHsPushSettingMapper.selectCircleHsPushSettingList(circleHsPushSetting);
    }

    /**
     * 新增圈子热搜推送设置
     * 
     * @param circleHsPushSetting 圈子热搜推送设置
     * @return 结果
     */
    @Override
    public int insertCircleHsPushSetting(CircleHsPushSetting circleHsPushSetting)
    {
        return circleHsPushSettingMapper.insertCircleHsPushSetting(circleHsPushSetting);
    }

    /**
     * 修改圈子热搜推送设置
     * 
     * @param circleHsPushSetting 圈子热搜推送设置
     * @return 结果
     */
    @Override
    public int updateCircleHsPushSetting(CircleHsPushSetting circleHsPushSetting)
    {
        return circleHsPushSettingMapper.updateCircleHsPushSetting(circleHsPushSetting);
    }

    /**
     * 批量删除圈子热搜推送设置
     * 
     * @param ids 需要删除的圈子热搜推送设置主键
     * @return 结果
     */
    @Override
    public int deleteCircleHsPushSettingByIds(Long[] ids)
    {
        return circleHsPushSettingMapper.deleteCircleHsPushSettingByIds(ids);
    }

    /**
     * 删除圈子热搜推送设置信息
     * 
     * @param id 圈子热搜推送设置主键
     * @return 结果
     */
    @Override
    public int deleteCircleHsPushSettingById(Long id)
    {
        return circleHsPushSettingMapper.deleteCircleHsPushSettingById(id);
    }
}
